package com.chenxin.springcloud.service.impl;

import com.chenxin.springcloud.entity.User;
import com.chenxin.springcloud.service.UserService;
import org.apache.dubbo.config.annotation.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Override
    public List<User> getUsers() {

        List<User> retList = new ArrayList<>(16);
        retList.add(new User(1, "chenxin", "123456"));

        return retList;
    }

    @Override
    public String sayHello() {
        System.out.println("UserServiceImpl.sayHello--20886");
        return "hello";
    }
}
